<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="${pageContext.request.contextPath }" var="baseUrl"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>重置密码</title>
    <script type="text/javascript" src="${baseUrl }/js/jquery-1.42.min.js"></script>
    <link href="${baseUrl }/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="${baseUrl }/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="${baseUrl }/css/base.css" rel="stylesheet" type="text/css">
    <link href="${baseUrl }/css/reg.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="${baseUrl }/css/headbott.css" type="text/css"/>
    <link rel="stylesheet" href="${baseUrl }/css/ace.min.css" type="text/css"/>
    <script type="text/javascript">
    	function checkPwd(){
    		var pwd1 = $("#password").val();
    		var pwd2 = $("#password2").val();
    		if(pwd1==""&&pwd2==""){
    			alert("密码不能为空！")
    		}else if(pwd1!=pwd2){
    			alert("两次密码不一致，请重新输入！")
    			$("#form1 input").val("");//自动清空form1表单下的所有input输入框里面的值
    		}else{
    			//document.getElementById("form1").submit();//根据id值提交表单
    			//formname.submit();//根据name值提交表单
    			$("#form1").submit();//根据id使用jquery提交表单
    		}
    	}
    </script>
</head>

<body>
<div id="header">
    <div class="heade-con">
        <div class="logo"><a href=""><img src="${baseUrl }/images/LOGO.png"/></a></div>
        <div class="nav posa">
            <ul>
                <li><a class="vcolor" href="${baseUrl }/index.jsp">首页</a></li>
                <li><a href="${baseUrl }/gyzc-list.jsp">公益众筹</a></li>
                <li><a href="${baseUrl }/cop.jsp">常见问题</a></li>
                <li><a href="${baseUrl }/ly-list.jsp">众筹资讯</a></li>
                <li><a href="${baseUrl }/new_info.jsp" style="">发布项目</a></li>
            </ul>
        </div>
        <div class="search">
            <form action="">
                <input type="text" class="search-txt" value="找项目">
                <input type="submit" class="search-but" value="">
            </form>
        </div>
        <div class="index-login">
            <c:if test="${user1 == null }">
            	<a class="index-login1" href="login.jsp">登录</a>
            </c:if>
            <c:if test="${user1 != null }">
            	<a href="${baseUrl }/UserController/intoUser?usId=${user1.usId}"><img alt="用户头像" title="个人中心" src="http://pic1.win4000.com/wallpaper/5/5894364aa872c.jpg" width="30px"></a>
            	<span style="color: white;">|</span>
            	<a href="${baseUrl }/UserController/outUser" title="退出登录">注销</a>
            </c:if>
            <c:if test="${user1 == null }">
            	<span style="color: white;">|</span>
            	<a href="user.jsp">注册</a>
            </c:if>	
        </div>
    </div>
</div>
<div class="login-container">

    <div class="space-6"></div>

    <div class="position-relative">
<div id="signup-box" class="signup-box widget-box no-border">
    <div class="widget-body">
        <div class="widget-main">
            <h4 class="header green lighter bigger">
                <i class="ace-icon fa fa-users blue"></i>
                重置密码
            </h4>

            <div class="space-6"></div>
            <p>填写信息: </p>

            <form id="form1" name="formname"action="${baseUrl }/UserController/updatePwdOfUser" method="post">
                <fieldset>
                    <label class="block clearfix">
                    新密码：
						<span class="block input-icon input-icon-left">
							<input type="password" class="form-control" id="password" name="password" placeholder="新密码" />
							<span id="pm1"></span>
						</span>
                    </label>

                    <label class="block clearfix">
                    确认密码：           
						<span class="block input-icon input-icon-left">
							<input type="password" class="form-control" id="password2"name="password2" placeholder="确认密码" />
							<span id="pm2"></span>
						</span>
                    </label>
                        <button type="button" onclick="checkPwd()"
                        class="width-65 pull-right btn btn-sm btn-success">
                            <span class="bigger-110">提交</span>

                            <i class="ace-icon fa fa-arrow-right icon-on-right"></i>
                        </button>
                    </div>
                </fieldset>
            </form>
        <div class="toolbar center">
            <a href="${baseUrl }/login.jsp" data-target="#login-box" class="back-to-login-link">
                <i class="ace-icon fa fa-arrow-left"></i>
                返回登录
            </a>
        </div>
    </div><!-- /.widget-body -->
</div>
    </div>
</div>
<div id="bottom">
    <div class="bottom-ggt"><a href=""><img src="${baseUrl }/images/bottbom_68.jpg" alt=""/></a></div>
    <div class="zc-yqlink">
        <ul>
            <li><a href="">阿里巴巴集团</a></li>
            <li><a href="">淘宝网</a></li>
            <li><a href="">天猫</a></li>
            <li><a href="">聚划算</a></li>
            <li><a href="">全球速卖通</a></li>
            <li><a href="">阿里巴巴国际交易市场</a></li>
            <li><a href="">1688</a></li>
            <li><a href="">阿里妈妈</a></li>
            <li><a href="">阿里旅行</a></li>
            <li><a href="">阿里云计算</a></li>
            <li><a href="">阿里巴巴集团</a></li>
            <li><a href="">淘宝网</a></li>
            <li><a href="">天猫</a></li>
            <li><a href="">聚划算</a></li>
            <li><a href="">全球速卖通</a></li>
            <li><a href="">阿里巴巴国际交易市场</a></li>
            <li><a href="">1688</a></li>
            <li><a href="">阿里妈妈</a></li>
            <li><a href="">阿里云计算</a></li>
        </ul>
    </div>
    <div class="footer-bd">

        <a href=" ">关于淘宝</a>
        <a href=" ">合作伙伴</a>
        <a href=" ">营销中心</a>
        <a href=" ">廉正举报</a>
        <a href=" ">联系客服</a>
        <a href=" ">开放平台</a>
        <a href=" ">诚征英才</a>
        <a href=" ">联系我们</a>
        <a href=" ">网站地图</a>
        <a href=" ">法律声明</a>　　　
        <em>© 2003-2015 Taobao.com 版权所有</em><br>

        <br>
        <span>网络文化经营许可证：<a href=" ">浙网文[2013]0268-027号</a></span>
        <b>|</b>
        <span data-spm-protocol="i">增值电信业务经营许可证：<a href="">浙B2-20080224-1</a></span>
        <b>|</b>
        <span>信息网络传播视听节目许可证：1109364号</span>
        <b>|</b>
        <span>举报电话:0571-81683755</span>
    </div>
</div>
</body>
</html>
